home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 2673 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.7 KB

  1. Path: news.zeitgeist.net!usenet
  2. From: mwm@contessa.phone.net (Mike Meyer)
  3. Newsgroups: comp.sys.amiga.introduction,comp.sys.amiga.networking
  4. Subject: Re: JAVA
  5. Date: Wed, 20 Mar 1996 12:36:14 PST
  6. Organization: Missionaria Phonibalonica
  7. Distribution: world
  8. Message-ID: <19960320.74C2EC0.B40B@contessa.phone.net>
  9. References: <884.6645T797T2962@atnet.at> <4i6jo2$npk@apollo.isisnet.com> <50077804@wbmt41.wbmt.tudelft.nl>
  10. NNTP-Posting-Host: contessa.phone.net
  11. X-NewsReader: Amiga Yarn 3.9, 1995/05/09 10:42:03
  12.  
  13. In <50077804@wbmt41.wbmt.tudelft.nl>, "Marcel Offermans" <marcel@wbmt41.wbmt.tudelft.nl> wrote:
  14. > I agree with you. On the other hand, I would very much like to see an Amiga
  15. > version of Java. I know there's a port underway, but I don't know how far
  16. > it is. I see Java as more than just a language that can be used to make
  17. > HTML pages more interactive. It can be a general purpose language, with the
  18. > great advantage that it is platform independent.
  19.  
  20. If all you want is a platform independent programming language - well,
  21. we've had a number of those around for a while. Off the top of my
  22. head, there's Perl, T, Scheme->C and Python. Scheme-C even lets you
  23. produce executables without having to have some kind of interpreter to
  24. read them, and Python has a (python-)applet enabled browser available.
  25. There are probably others I've missed.
  26.  
  27. The problems are that Perl is 5 years out of date (unless the Perl 5
  28. port I've heard mutters about has been released) and missing critical
  29. pieces of functionality from then, the person who ported T said he
  30. wasn't going to provide any further support, and Scheme->C never made
  31. it to the R3RS compatable version or to generating code SAS/C 6.0.
  32.  
  33. Which leaves Python. There's a port of the most recent version
  34. available, and it seems pretty solid and well-behaved. However, for
  35. many of the things you want to do there are parts missing that
  36. interfere with it being used portably. For example, the CGI module
  37. uses the URL module to get the URL string escape facility, and the URL
  38. module uses the socket module which doesn't exist on the Amiga (for
  39. this case that's OK; the CGI module doesn't use any of the URL module
  40. that needs the socket module, so providing a dummy socket module works
  41. fine).
  42.  
  43. Now, look at the problem with getting the applet-enabled browser to
  44. work. It uses the TKinter module, which is an interface to TCL/TK.
  45. There was a TCL port (yet another portable language for you), though I
  46. don't know if it included TK functionality. Since TK is an X interface
  47. toolkit, doing that interface is going to be interesting. Probably no
  48. more painfull and resource-consuming than something like MUI, or
  49. ClassAct if you strip out all the user configuration options that X
  50. comes with.
  51.  
  52. Given that, you can write applets. To get the browser working, you
  53. need a socket interface for the stack you're using.
  54.  
  55. In summary, computing environments have changed radically in the past
  56. five years. Typically, languages give you a portable module for cpu
  57. utilization and disk or TTY I/O. The current computing environment
  58. includes network connections and windowing systems. A port of a
  59. language by itself isn't sufficient to write modern applications - you
  60. need an interface to the parts of the computing environment that
  61. aren't tied to the language. Once you've got that you don't have the
  62. ability to write portable programs - you need the interface to the
  63. things outside the language to be the same on all the platforms.
  64.  
  65. JAVA offers some hope of this, as it dynamically loads modules that
  66. provide classes for those APIs, meaning that JAVA programs are
  67. portable to all platforms that have JAVA and a module for that API.
  68. Python has the same kind of functionality on some platforms, but not
  69. all of them.
  70.  
  71.     <mike
  72.